<template>
  <div class="ass">
      <el-image :src="src" alt="" class="image-slot">
          
     <template  slot="error" class="image-slot">
        <img src="./head.jpg" />
      </template>
    </el-image>
  </div>
</template>

<script>
export default {
    name:'imagx',
props:{
    src:{
        type:String,
        request:true
    }
}
}
</script>

<style>
.image-slot{
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.ass{
    width: 100px;
    height: 100px;
}
</style>